package com.ezcms.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

 

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = false)
@Table(name = "article")
public class Article extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	 * 文章实体ID
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private String articleId;

	/**
	 * 文章标题
	 */
	@Column(length = 100)
	private String title;

	/**
	 * 文章内容
	 */
	@Lob
	private String content;

	/**
	 * 文章类型
	 */
	@Column(length = 40)
	private Integer articleCategoryId;

	public String getArticleId() {
		return articleId;
	}

	public void setArticleId(String articleId) {
		this.articleId = articleId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Integer getArticleCategoryId() {
		return articleCategoryId;
	}

	public void setArticleCategoryId(Integer articleCategoryId) {
		this.articleCategoryId = articleCategoryId;
	}

}
